package com.yixing.tech.entity.entity;

import com.yixing.tech.entity.po.Obj;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yixing tech
 * at 2022/4/25
 * describe：
 */
@Data
public class ObjButton{

    public static List<Obj.Button> deftButtons;

    /**
     * 新增：a-additionfile-line
     * 编辑：a-fileedit-line
     * 查看：a-bills4-line
     * 删除：a-boxclose-line
     * 复制：copy-line
     * 刷新：a-refresh3-line
     * 导入：Import-line
     * 导出：export-line
     * 批量删除：delete-line
     */
    static {
        deftButtons = new ArrayList<>();
        deftButtons.add(new Obj.Button("新增","add","a-additionfile-line", ObjButtonPosition.global.name()));
        deftButtons.add(new Obj.Button("复制","copy","copy-line", ObjButtonPosition.inlineHidden.name()));
        deftButtons.add(new Obj.Button("详情","view","a-bills4-line", ObjButtonPosition.inline.name()));
        deftButtons.add(new Obj.Button("删除","remove","a-boxclose-line",ObjButtonPosition.inlineHidden.name()));
        deftButtons.add(new Obj.Button("批量删除","batchRemove","delete-line",ObjButtonPosition.global.name()));
        deftButtons.add(new Obj.Button("编辑","edit","a-fileedit-line",ObjButtonPosition.inlineHidden.name()));
        deftButtons.add(new Obj.Button("刷新","reload","a-refresh3-line", ObjButtonPosition.global.name()));
        deftButtons.add(new Obj.Button("导入","import","Import-line", ObjButtonPosition.global.name()));
        deftButtons.add(new Obj.Button("导出","export","export-line", ObjButtonPosition.global.name()));
    }

}
